<?php   
$postdata = 
array( 'login' => 'tst545l',  'password' => 'test_p', 
       'batch_name' =>    'batch_'.date('Y-m-d_H:i:s'),  
       'phones_list' =>'(0598777210,102.45,1)',
       'start_date' => '2015-01-06 13:00:00'
); 
$jsondata = json_encode($postdata);  
$ch = curl_init();  
curl_setopt($ch, CURLOPT_URL, "http://localhost/AMIautocall/import.php"); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  
curl_setopt($ch, CURLOPT_POST, 1);  
curl_setopt($ch, CURLOPT_POSTFIELDS, "postdata=".$jsondata);   
$out=curl_exec($ch);  
curl_close($ch);  
print_r($out);   ?> 